package com.hmall.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "com_send_msg")
public class ComSendMsg {
    @Id
    @Column(name = "push_msg_id")
    private Integer pushMsgId;

    /**
     * 受众频道
     */
    @Column(name = "audiences_channel")
    private String audiencesChannel;

    @Column(name = "userName")
    private String username;

    @Column(name = "send_time")
    private Date sendTime;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "send_type")
    private String sendType;

    /**
     * 内容
     */
    private String body;

    private String title;

    /**
     * 0：未发送，1：已发送
     */
    @Column(name = "is_send")
    private Integer isSend;

    /**
     * 跳转参数或链接
     */
    private String value;

    /**
     * @return push_msg_id
     */
    public Integer getPushMsgId() {
        return pushMsgId;
    }

    /**
     * @param pushMsgId
     */
    public void setPushMsgId(Integer pushMsgId) {
        this.pushMsgId = pushMsgId;
    }

    /**
     * 获取受众频道
     *
     * @return audiences_channel - 受众频道
     */
    public String getAudiencesChannel() {
        return audiencesChannel;
    }

    /**
     * 设置受众频道
     *
     * @param audiencesChannel 受众频道
     */
    public void setAudiencesChannel(String audiencesChannel) {
        this.audiencesChannel = audiencesChannel;
    }

    /**
     * @return userName
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return send_time
     */
    public Date getSendTime() {
        return sendTime;
    }

    /**
     * @param sendTime
     */
    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return send_type
     */
    public String getSendType() {
        return sendType;
    }

    /**
     * @param sendType
     */
    public void setSendType(String sendType) {
        this.sendType = sendType;
    }

    /**
     * 获取内容
     *
     * @return body - 内容
     */
    public String getBody() {
        return body;
    }

    /**
     * 设置内容
     *
     * @param body 内容
     */
    public void setBody(String body) {
        this.body = body;
    }

    /**
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取0：未发送，1：已发送
     *
     * @return is_send - 0：未发送，1：已发送
     */
    public Integer getIsSend() {
        return isSend;
    }

    /**
     * 设置0：未发送，1：已发送
     *
     * @param isSend 0：未发送，1：已发送
     */
    public void setIsSend(Integer isSend) {
        this.isSend = isSend;
    }

    /**
     * 获取跳转参数或链接
     *
     * @return value - 跳转参数或链接
     */
    public String getValue() {
        return value;
    }

    /**
     * 设置跳转参数或链接
     *
     * @param value 跳转参数或链接
     */
    public void setValue(String value) {
        this.value = value;
    }
}